package ooday03homework;

import java.awt.*;

public abstract class Animal {
    String name;
    int age;
    Color color;
    Animal(){

    }
    Animal(String name,int age,Color color){
        this.name=name;
        this.age=age;
        this.color=color;
    }

    abstract void eat();
    void drink(){
        System.out.println("名叫"+name+"今年"+age+"岁了"+color+"色的正在喝水。。。。。。");
    }
    }


